package com.efast.dmom.mgmt.controller.master;


import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.entity.master.TmBasDataCollectionItem;
import com.efast.dmom.mgmt.service.master.TmBasDataCollectionItemService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * <p>
 * 数据采集器数据项定义 前端控制器
 * 编写方法时，请导入master包内与DataCollection相关的po类、service类。忽略mes包内的文件
 * </p>
 *
 * @author Xu Cong
 * @since 2018-09-20
 */
@Controller
@RequestMapping("/tmBasDataCollectionItem")
public class TmBasDataCollectionItemController {
	@Autowired
	private TmBasDataCollectionItemService tmBasDataCollectionItemService;
	
	/**
	 * crud【新增-保存】
	 */
	@RequestMapping(value="/save")
	public @ResponseBody
	ResultBean save(@RequestBody TmBasDataCollectionItem tmBasDataCollectionItem) {
		ResultBean result = new ResultBean(true,"'");
		tmBasDataCollectionItemService.save(tmBasDataCollectionItem);
		return result;
	}
}

